﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace Demo5
{
    public class Program
    {
        static void Main(string[] args)
        {
            Rectangle rect = new Rectangle(5, 3);
            Console.WriteLine("面积为:" + rect.Area());
            Console.WriteLine("周长为:" + rect.Perimeter());

            Rectangle rect1 = new Rectangle(10, 13);
            Console.WriteLine("面积为:" + rect1.Area());
            Console.WriteLine("周长为:" + rect1.Perimeter());

            Console.ReadKey();
        }
    }
}
